#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author   : Moty
# @Time     : 2024/1/24 15:53
# @File     : convert.py
# @Project  : jt808
import codecs


# ASCII转字符串
def ascii_to_string(ascii_codes):
    byte_data = codecs.decode(ascii_codes, 'hex')
    return byte_data.decode('ascii')
